package com.hxs.hxsserver.mapper.device;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hxs.hxsserver.domain.dto.device.AlarmQueryDTO;
import com.hxs.hxsserver.domain.entity.device.AlarmLog;
import com.hxs.hxsserver.domain.entity.device.Device;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface AlarmLogMapper extends BaseMapper<AlarmLog> {

    IPage<AlarmLog> getAlarmLog(@Param("page") Page<Device> page, @Param("userId")  Integer id,@Param("alarmQueryDTO") AlarmQueryDTO alarmQueryDTO);
}